import React,{Component} from "react";

class  BookAdd extends  Component{
    render() {
        return (
            <div>
                <form action="http://localhost:8080/book/add" method="post" encType="multipart/form-data">
                    名称：<input type="text" name="bookName"/><br />
                    作者：<input type="text" name="author"/><br />
                    价格：<input type="text" name="price"/><br />
                    出版日期：<input type="text" name="publishDate"/><br />
                    图片：<input type="file" name="photo"/><br />
                    <input type="submit" value="添加书籍"/>
                </form>
            </div>
        );
    }
}

export default BookAdd;